package com.weikuang.fareast.adapter;

import android.os.Build;
import android.support.annotation.RequiresApi;

import com.weikuang.fareast.R;
import com.weikuang.fareast.bean.ChangeBean;

import cn.dlc.commonlibrary.ui.adapter.BaseRecyclerAdapter;


/**
 * 统计
 */
public class AddQueryDetailsAdapter extends BaseRecyclerAdapter<ChangeBean> {

    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_add_query_details;
    }

    public AddQueryDetailsAdapter() {

    }

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {
        ChangeBean bean = getItem(position);

        holder.getText(R.id.title).setText(bean.title);
        holder.getText(R.id.specification).setText(bean.specification);
        holder.getText(R.id.ed_num).setText(bean.num+"");
        holder.getText(R.id.ed_check).setText(bean.num_check+"");
        holder.getText(R.id.ed_num_loss).setText(bean.num_loss+"");
        holder.getText(R.id.ed_num_backs).setText(bean.backs+"");

    }
}
